package com.fruit.auth.dao;

import java.io.Serializable;
import java.util.List;

import com.fruit.auth.model.Privilege;
import com.fruit.auth.model.Role;
import com.fruit.auth.model.RolePrivilege;
import com.fruit.auth.model.UserRole;
import com.fruit.dao.BaseDao;

public interface RolePrivilegeDao extends BaseDao<RolePrivilege>
{
	public void saveRolePrivileges(final Role role, final List<Serializable> privilegeIds);
	public UserRole findRolePrivilege(Role role, Privilege privilege);
	public List<Privilege> findRolePrivileges(Role role);
	public List<Serializable> findRolePrivilegeIds(Role role);
	public void updateRolePrivileges(Role role,List<Serializable> privilegeIds);
	public void unAuthRolePrivileges(Role role);
	public void unAuthRolesPrivileges(String roleIdsStr);
}
